package com.sl.design_pattern.builder;

/**
 * Created by lisulong on 2019/11/25.
 */
public class Main {
    public static void main(String[] args) {
        showBike(new OfoBuilder());
        showBike(new MobikeBuilder());
    }
    private static void showBike(Builder builder) {
        Director director = new Director(builder);
        Bike bike = director.construct();
        System.out.println(bike.getFrame().frame());
        System.out.println(bike.getSeat().seat());
        System.out.println(bike.getTire().tire());
        System.out.println("build end");
    }
} 
